package com.diligent.cloud.sfc.service;

import com.canny.commons.model.ListResult;
import com.canny.commons.model.ObjectResult;
import com.diligent.cloud.sfc.model.OrderCompleteParams;
import com.diligent.cloud.sfc.model.params.inventory.PackingInventoryParams;
import com.diligent.cloud.workorder.model.DpsListParams;
import com.diligent.cloud.workorder.model.WoLotsWeight;
import org.springframework.http.ResponseEntity;

import java.security.Principal;

/**
 * WorkshopScenePackingService interface
 *
 * @author xf107278
 * @date 4/20/2020
 */
public interface WorkshopScenePackingService {

    ListResult getPackingList(String machCode,String matCode);

    ObjectResult addPackingInventory(PackingInventoryParams packingInventoryParams, Principal principal);

     ListResult getLotsByOrder(Long orderId) ;

    ObjectResult getLotsByMachCode(String machCode, Principal principal);
    //查询打木箱信息
    ObjectResult getPackLotsFilter(String machCode, Principal principal);

    ObjectResult getLastOrder(String machCode, Principal principal);

    ObjectResult cancelLots(Long lotsId,  Principal principal);

    ObjectResult addLotsWeight(WoLotsWeight lotsWeight, Principal principal);

    ObjectResult addLots(OrderCompleteParams orderCompleteParams,Principal principal);

    ListResult getPackDpsFilter(DpsListParams dpsListParams ,ResponseEntity<ListResult>dpsList);
}
